home *** CD-ROM | disk | FTP | other *** search
/ Sun Solutions 2000 #2 / Sun Solutions CD (Volume 2 2000)(Special Focus - Java Technologies)(Disc 1).ISO / products / bin / finish.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2000-01-05  |  3KB  |  107 lines

  1. #!/bin/sh
  2. #
  3.  
  4. #echo "NETSCAPE_CATALYST=$NETSCAPE_CATALYST"
  5. #echo "IE_CATALYST=$IE_CATALYST"
  6. if [ "$NETSCAPE_CATALYST" != "" ]; then
  7.     if [ -r $NETSCAPE_CATALYST ]; then
  8.         echo "Netscape is starting: using  "$NETSCAPE_CATALYST "..."
  9.         #$NETSCAPE_CATALYST -xrm "*useStderrDialog: False" -xrm "*strings.22130:This process will launch\nan installation from the $ISSUE_NAME.\n\nProceed?\n" -geometry =620x775+0+0 $WWW_FIRST 2>&-
  10.         #$NETSCAPE_CATALYST -geometry =620x775+0+0 $WWW_FIRST 2>&-
  11.         $NETSCAPE_CATALYST $WWW_FIRST 2>&-
  12.         #echo "Netscape is starting... "    
  13.         echo ""    
  14.         echo ""    
  15.     else
  16.         echo "Cannot execute $NETSCAPE_CATALYST";
  17.     fi
  18. else if [ "$IE_CATALYST" != "" ]; then
  19.     if [ -r $IE_CATALYST ]; then
  20.         echo "Internet explorer is starting: using  "$IE_CATALYST "..."
  21.         #$IE_CATALYST -xrm "*useStderrDialog: False" -xrm "*strings.22130:This process will launch\nan installation from the $ISSUE_NAME.\n\nProceed?\n" -geometry =620x775+0+0 $WWW_FIRST 2>&-
  22.         $IE_CATALYST -geometry =620x775+0+0 $WWW_FIRST 2>&-
  23.     else
  24.         echo "Cannot execute $IE_CATALYST";
  25.     fi
  26.      else
  27.     echo
  28.     echo
  29.     echo "Neither Netscape Navigator nor Internet Explorer were found."
  30.     echo "Please install one of these browser before using this CD."
  31.     echo "Thank you."
  32.     echo
  33.      fi
  34. fi
  35.  
  36. #LAUNCH_NETSCAPE=`which netscape`
  37. #echo "Launching Netscape from $LAUNCH_NETSCAPE"
  38. #$LAUNCH_NETSCAPE $WWW_FIRST
  39. #/usr/dist/exe/netscape $WWW_FIRST
  40. #$CD_MOUNT/products/.bin/gui/$CDWARE_ENV/netscape$OS_REV -xrm "*useStderrDialog: False" -xrm "*strings.22130:This process will launch\nan installation from the $ISSUE_NAME.\n\nProceed?\n" -geometry =620x775+0+0 $WWW_FIRST 
  41.         #$CD_MOUNT/.products/.bin/gui/$CDWARE_ENV/netscape$OS_REV -xrm "*useStderrDialog: False" -xrm "*strings.22130:This process will launch\nan installation from the $ISSUE_NAME.\n\nProceed?\n" -geometry =600x775+0+0 $WWW_FIRST 2>&-
  42. #fi
  43.  
  44. #
  45. # clean-up
  46. #
  47. #echo "server_process=$server_process"
  48. kill -9 $server_process >&-
  49. #echo "serverprocess killed"
  50.  
  51. #if [ -f $DISC_DIR/nostart ];then
  52. #        # kill sound
  53. #        if [ -r $DISC_DIR/sound.pid ]; then
  54. #        kill -9 `cat $DISC_DIR/sound.pid`
  55. #        fi
  56. #        rm -r $DISC_DIR
  57. #        exit 0
  58. #fi
  59. #
  60. #if [ -w /dev/audio -a ! -f $DISC_DIR/noplay ]; then 
  61. #    if [ $CDWARE_ENV != "Solaris_1" ]; then
  62. #            audioplay -i $CD_MOUNT/products/bin/gui/audio/thanks.au&
  63. #    else
  64. #            cat $CD_MOUNT/products/bin/gui/audio/thanks.au > /dev/audio&
  65. #    fi
  66. #fi
  67. ## kill httpd
  68. #if [ -r $DISC_DIR/logs/httpd.pid ]; then
  69. #    kill -9 `cat $DISC_DIR/logs/httpd.pid`
  70. #fi
  71. #     echo ""
  72. #     echo "Shutting down NetResults server..."
  73. #     echo ""
  74. #     echo "" 
  75. #     kill -9 `cat $DISC_DIR/nrserver.pid`
  76. #
  77. #
  78. #if [ -h $HOME/.netscape/lock ]; then
  79. #    echo "Netscape seems to have crashed. Removing $HOME/.netscape/lock file."
  80. #    echo
  81. #    rm -rf $HOME/.netscape/lock
  82. #fi
  83. #
  84. #
  85. ## remove httpd config
  86. #if [ -d $DISC_DIR ]; then
  87. #    echo "removing $DISC_DIR directory"
  88. #    rm -rf $DISC_DIR
  89. #fi
  90. #
  91. ## remove .netscape dir if exists 
  92. ## remove .netscape
  93. #if [ "$dir_exist" = "0" ]; then 
  94. #        rm -rf $HOME/.netscape 
  95. #fi
  96. ## no "else" was used here  
  97. #if [ "$dir_exist" = "1" ]; then
  98. #        cp $HOME/.netscape.solcd/preferences.js $HOME/.netscape
  99. #        rm -rf $HOME/.netscape.solcd
  100. #fi
  101. #
  102. #
  103. #echo ""
  104. #echo ""
  105.  
  106. exit 0
  107.